import request from '@/utils/index'

//登录-手机  参数：phone password
export const loginByPhone = params =>request({
    url:'/login/cellphone',
    params
});
//登录-邮箱  参数:email password
export const loginByEmail = params =>request({
    url:'/login',
    params
});
//登录状态检查
export const checkStatus = () =>request({
    url:'/login/status'
});

// 退出登录
export const exitLogin = () =>request({
    url:'/logout'
});

// 刷新登陆状态
export const loginRefresh = () =>request({
    url:'/login/refresh'
});
